
<div class="front-signin js-front-signin">
    <?php
        $form = $this->beginWidget('CActiveForm',array(
            'id'=>'login-form',
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
            ),
        ));
    ?>
        <div class="placeholding-input username">
            <?php
                echo $form->textField($model, 'username', array('class'=>"text-input email-input"));
                echo Html::tag('span', array('class'=>'placeholder'), 'Username');
            ?>
        </div>

        <table class="flex-table password-signin">
            <tbody>
                <tr>
                    <td class="flex-table-primary">
                        <div class="placeholding-input password flex-table-form">
                            <?php
                                echo $form->passwordField($model, 'password', array('class'=>"text-input flex-table-input"));
                                echo Html::tag('span', array('class'=>'placeholder'), 'Password');
                            ?>
                        </div>
                    </td>
                    <td class="flex-table-secondary">
                        <button tabindex="0" type="submit" class="submit btn primary-btn flex-table-btn js-submit">Sign in</button>
                    </td>
                </tr>
            </tbody>
        </table>

        <div class="remember-forgot">
            <label class="remember">
                <input checked="checked" value="1" name="remember_me" type="checkbox">
                <span>Remember me</span>
            </label>
            <span class="separator">·</span>
            <a class="forgot" href="https://twitter.com/account/resend_password">Forgot password?</a>
        </div>

        <input name="return_to_ssl" value="true" type="hidden">

        <input name="scribe_log" type="hidden">
        <input name="redirect_after_login" value="" type="hidden">
        <input value="5a1dcf5e964e04ec9ef055900b66d588eb66c54f" name="authenticity_token" type="hidden">
    <?php $this->endWidget()?>
</div>

<?php $this->renderPartial('register',array('model'=>$user));